/*
 * 易族智汇（北京）科技有限公司 版权所有。
 * 未经许可，您不得使用此文件。
 * 官方地址：www.javamall.com.cn
 */
package com.enation.app.javashop.core.client.feignimpl.trade;

import com.enation.app.javashop.client.trade.DepositeLogClient;
import com.enation.app.javashop.core.client.fallback.trade.DepositeLogClientFallbackFactory;
import com.enation.app.javashop.core.handler.FeignConfiguration;
import com.enation.app.javashop.framework.database.WebPage;
import com.enation.app.javashop.model.member.dto.DepositeParamDTO;
import com.enation.app.javashop.model.trade.deposite.DepositeLogDO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 *
 * @description: 预存款记录客户端
 * @author: liuyulei
 * @create: 2019/12/30 18:40
 * @version:1.0
 * @since:7.1.5
 **/
@FeignClient(name = "trade-service", fallbackFactory = DepositeLogClientFallbackFactory.class,configuration = {FeignConfiguration.class})
public interface DepositeLogClientFeignImpl extends DepositeLogClient {

    /**
     * 添加日志
     * @param logDO  日志实体
     */
    @Override
    @RequestMapping(value = "/client/trade/deposite-log",method = RequestMethod.POST)
    void add(@RequestBody DepositeLogDO logDO);


    /**
     * 获取日志列表  分页
     * @param paramDTO
     * @return
     */
    @Override
    @RequestMapping(value = "/client/trade/deposite-log/list",method = RequestMethod.POST)
    WebPage list(@RequestBody DepositeParamDTO paramDTO);
}
